package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WarehouseDetailsInfo {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer pId;//父id，关联仓库表

    private Integer shopId;//商品id

    private Integer uId;//供应商id

    private Integer maxNum;//最大存储值

    private Integer minNum;//最小存储值(当前存储量少于最小值警告)

    private Integer amount;//当前存储量(当前存储量不能大于最大值)

    private Integer lockStock;//锁定库存
    //默认为0
    //当出库选择仓库内的商品时，显示该条数据

    private Integer isCheck;//审核状态
    //0:等待审核 1:通过;2未通过

    //父仓库
    @TableField(exist = false)
    private WarehouseInfo warehouseInfo;

    //商品
    @TableField(exist = false)
    private ShopInfo shopInfo;

    //供应商用户
    @TableField(exist = false)
    private Users users;

    //供应商商品对象
    @TableField(exist = false)
    private SupplierSupplyOfGoods supplierSupplyOfGoods;
}